package com.junbao.androidinterview.proxy.jingtai;

/**
 * author : Majunbao
 * github : https://github.com/MaJunBaox
 * time   : 2022/8/9 12:27 下午
 * desc   : 民事诉讼代理律师
 */
public class CivilProxyLawyer implements CivilSubject{

    private CivilSubject civilSubject;

    public CivilProxyLawyer(CivilSubject subject) {
        civilSubject=subject;
    }

    @Override
    public void civilLawsuit() {
        before();
        civilSubject.civilLawsuit();
        after();
    }

    private void before() {
        System.out.println("签合同");
    }
    private void after() {
        System.out.println("收佣金");
    }
}
